package com.mxf.code.chain_params;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 28382
 */
@Data
@NoArgsConstructor
public class ParamRequest {

    /**
     * 数据类型
     */
    private Integer dataType;

    /**
     * 值
     */
    private Object value;

    // 其它限制条件
    /**
     * 是否必填
     */
    private boolean isRequired;
    /**
     * 单选
     */
    private boolean isSelected;
    /**
     * 多选
     */
    private boolean areSelected;
    /**
     * 最小值
     */
    private String minValue;
    /**
     * 最大值
     */
    private String maxValue;
    /**
     * 备注
     */
    private String remark;

    public ParamRequest(Integer dataType, Object value) {
        this.dataType = dataType;
        this.value = value;
    }

    public ParamRequest(Integer dataType, Object value, boolean isRequired) {
        this.dataType = dataType;
        this.value = value;
        this.isRequired = isRequired;
    }
}
